package com.zhou.spring.cloud.balancer.config;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.RequestOriginParser;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SentinelConfiguration {

    @Bean
    public RequestOriginParser requestOriginParser() {
        return new MyRequestOriginParser();
    }
}
